import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/assets/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/assets/icons' // icon
import './permission' // permission control
import directive from './directive'
import {download, zip} from '@/utils/request'
import DictTag from '@/components/DictTag'
import DictData from '@/components/DictData'

Vue.prototype.download = download
Vue.prototype.zip = zip

Vue.component('DictTag', DictTag)

Vue.use(ElementUI)
Vue.use(directive)

DictData.install()

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
